/**
 * ****************************** ICE *******************************
 * ========================================================================
 * Project: iceutil 
 * Package: org.ice4apps.util 
 * File: IceLog.java 
 * Author: robin 
 * Date: Nov 25, 2008 
 * Description:
 * ========================================================================
 */
package org.ice4apps.util;

import org.jboss.logging.Logger;

/**
 * @author MyEclipse Persistence Tools
 */
public class IceLog { 
    /**
     * @param clazz
     * @param message
     */
    public static void debug (Class clazz, Object... message) {
        final Logger logger = Logger.getLogger (clazz);
        logger.debug (Util.append (message));
    }

    /**
     * @param clazz
     * @param th
     * @param message
     */
    public static void debug (Class clazz, Throwable th, Object... message) {
        final Logger logger = Logger.getLogger (clazz);
        logger.debug (Util.append (message), th);
    }

    /**
     * @param clazz
     * @param message
     */
    public static void error (Class clazz, Object... message) {
        final Logger logger = Logger.getLogger (clazz);
        logger.error (Util.append (message));
    }

    /**
     * @param clazz
     * @param th
     * @param message
     */
    public static void error (Class clazz, Throwable th, Object... message) {
        final Logger logger = Logger.getLogger (clazz);
        logger.error (Util.append (message), th);
    }

    /**
     * @param clazz
     * @param message
     */
    public static void info (Class clazz, Object... message) {
        final Logger logger = Logger.getLogger (clazz);
        logger.info (Util.append (message));
    }

    /**
     * @param clazz
     * @param message
     */
    public static void warn (Class clazz, Object... message) {
        final Logger logger = Logger.getLogger (clazz);
        logger.warn (Util.append (message));
    }
}
